/**
 * @param {string} expression
 * @return {string}
 */
 var minimizeResult = function(expression) {
  const n = expression.length
  const m = expression.indexOf('+')
  let ans = '', val = Infinity
  for(let l = 0; l<m; l++) {
    for(let r = n; r>m+1; r--) {
      let now = expression.split('')
      now.splice(l, 0, '(')
      now.splice(r+1, 0, ')')
      const exp = [...now]
      let cr = r+1
      if(l !== 0) {
        exp.splice(l, 0, '*')
        cr++
      }
      if(cr < exp.length-1){
        exp.splice(cr+1, 0, '*')
      }
      const cur = eval(exp.join(''))
      if(cur < val) {
        ans = now.join('')
        val = cur
      }
    }
  }
  return ans
};